
import org.springframework.mail.javamail.JavaMailSenderImpl;

public class CustomMailSender extends JavaMailSenderImpl{
    
    public CustomMailSender(){
        this.setHost("smtp.gmail.com");
        this.setPort(587);
        this.setUsername("daviteq.test01@gmail.com");
        this.setPassword("@!Abc123456");
        this.getJavaMailProperties().setProperty("mail.smtp.auth", "true");
        this.getJavaMailProperties().setProperty("mail.debug", "true");
        this.getJavaMailProperties().setProperty("mail.smtp.starttls.enable", "true");
    }

}
